package com.cnap.multiclouldmgmt.model.k8sMonitorModels;

import com.cnap.multiclouldmgmt.model.k8sModels.SvcModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Map;
/**
 * 监控或者算法需要的数据
 * @author dyq
 */
@ApiModel(value = "com.cnap.multiclouldmgmt.model.k8sMonitorModels.SvcMonitorModel",description = "服务监控信息")
public class SvcMonitorModel extends SvcModel {

    //服务对应的pod总数
    @ApiModelProperty(value = "服务对应的pod总数")
    private int totalPodNum;

    //服务对应的正常pod数量
    @ApiModelProperty(value = "服务对应的正常pod数量")
    private int normalPodNum;

    //所有pod集合，用于去重
    @ApiModelProperty(value = "所有pod集合，用于去重")
    private Map<String,String> totalPodMap;

    //所有正常pod集合，用于去重
    @ApiModelProperty(value = "所有正常pod集合，用于去重")
    private Map<String,String> normalPodMap;

    //辅助统计pod数量，用于spark
    @ApiModelProperty(value = "辅助统计pod数量，用于spark")
    private int otherPodNum;

    /**
     * get
     *
     * @return TotalPodNum
     */
    public int getTotalPodNum() {
        return totalPodNum;
    }

    /**
     * set
     *
     * @param totalPodNum totalPodNum
     */
    public void setTotalPodNum(int totalPodNum) {
        this.totalPodNum = totalPodNum;
    }

    /**
     * get
     *
     * @return NormalPodNum
     */
    public int getNormalPodNum() {
        return normalPodNum;
    }

    /**
     * set
     *
     * @param normalPodNum normalPodNum
     */
    public void setNormalPodNum(int normalPodNum) {
        this.normalPodNum = normalPodNum;
    }

    /**
     * get
     *
     * @return TotalPodMap
     */
    public Map<String, String> getTotalPodMap() {
        return totalPodMap;
    }

    /**
     * set
     *
     * @param totalPodMap totalPodMap
     */
    public void setTotalPodMap(Map<String, String> totalPodMap) {
        this.totalPodMap = totalPodMap;
    }

    /**
     * get
     *
     * @return NormalPodMap
     */
    public Map<String, String> getNormalPodMap() {
        return normalPodMap;
    }

    /**
     * set
     *
     * @param normalPodMap normalPodMap
     */
    public void setNormalPodMap(Map<String, String> normalPodMap) {
        this.normalPodMap = normalPodMap;
    }

    /**
     * get
     *
     * @return OtherPodNum
     */
    public int getOtherPodNum() {
        return otherPodNum;
    }

    /**
     * set
     *
     * @param otherPodNum otherPodNum
     */
    public void setOtherPodNum(int otherPodNum) {
        this.otherPodNum = otherPodNum;
    }
}
